<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/29
 * Time: 9:49
 */

namespace app\api\model;


class Category extends BaseModel
{

    protected $hidden = [
        'create_time','update_time','delete_time'
    ];

    public function img(){
        return $this->belongsTo('Image','topic_img_id','id');
    }

}